package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;

public interface WmNewsService extends IService<WmNews> {

    /**
     * 查询文章
     * @param dto
     * @return
     */
    public ResponseResult findAll(WmNewsPageReqDto dto);

    /*
     * @description: 发布文章
     * @author: 椎名真白
     * @date: 2022-06-14 20:14
     * @param: dto
     * @return: com.heima.model.common.dtos.ResponseResult
     **/
    public ResponseResult submitNews(WmNewsDto dto);

    public ResponseResult getOne(Integer id);

    public ResponseResult MyremoveById(Integer id);

    public ResponseResult downOrUp(WmNewsDto wmNewsDto);
}